home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11213 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.interpath.net!softbase
  2. From: softbase@mercury.interpath.com (Scott McMahan - Softbase Systems)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Portability of code & skills (Beware of "C" Hackers etc)
  5. Date: 22 Mar 1996 16:59:47 GMT
  6. Organization: Interpath -- Providing Internet access to North Carolina
  7. Message-ID: <4iuma3$aqk@news.interpath.net>
  8. NNTP-Posting-Host: mercury.interpath.com
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Graham Perkins (grp@dmu.ac.uk) wrote:
  12. : Cobol's pattern matched input and
  13. : pattern editing output is extremely powerful, but C does not even check
  14. : you pass the same number of print items as you specify, never mind give
  15. : you the power to control currency sign, leading zero suppression, decimal
  16. : format, credit/debit formats... 
  17.  
  18. But there's nothing at all in C to prevent writing this kind of highly
  19. specialized report generation library. You could write it once and use
  20. it forever. If there was any demand for this, people would be selling
  21. them. It would be simple to create something like perl's write
  22. statement in C, or even something as complex as COBOL's editing. If you
  23. don't like the standard library, roll your own.
  24.  
  25. :And what about that file handling?
  26. : Read an arbitrary number of bytes into an un-typed buffer .. that's power?
  27.  
  28. Yes. You can do ANYTHING with the stream of bytes, including emulate
  29. structured files using a library.
  30.  
  31. Scott
  32.  
  33.